FROM java
VOLUME /tmp
ARG JAR_FILE
ADD ${JAR_FILE} crontask.jar
RUN sh -c 'touch /crontask.jar'
ENV JAVA_OPTS=$JAVA_OPTS
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /crontask.jar" ]